<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>{$title}</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <style>
        *{
            margin: 0;
            padding: 0;
        }
        html{
            font: 14px SimSun,\5B8B\4F53,serif;
            width: 100%;
            height: 100%;
        }
        body{
            line-height: 24px;
            height: 100%;
            background-color: #F8F1F1;
            width: 100%;
        }
        a{
            text-decoration: none;
        }
        img{
            border: none;
            width: 100%;
        }
        li{
            list-style: none;
        }
        .wrapper{
            max-width: 768px;
            width: 23rem;
            height: 37rem;
            margin: 1.5rem auto;
            overflow: hidden;
            display: block;
            vertical-align: middle;
        }
        .wrapper-content{
            width: 100%;
            height: 100%;
            background: #FFFFFF url("/static/valentine/img/index_bg.png") no-repeat;
            background-size: cover;
        }
        .content{
            width: 21.14rem;
            height: 34.96rem;
            margin: 1rem 0.93rem;
            float: left;
            display: block;
            box-sizing: border-box;
            -webkit-box-sizing: border-box;
            -moz-box-sizing: border-box;
            border: 0.32rem solid #F1C9CB;
            background: #FFFFFF;
            position: relative;

        }
        .index_img{
            width: 14.07rem;
            display: block;
            margin: 5.21rem auto 2.29rem;
        }
        .index_button{
            text-align: center;
            width: 14.07rem;
            height: 3.25rem;
            line-height: 3.25rem;
            display: block;
            margin: 0 auto;
            background: #ffffff url("/static/valentine/img/index_button.png") no-repeat top left;
            background-size: cover;
            color: #372a2a;
            font-family: serif;
            font-size: 20px;
        }
        /*iphone 5*/
        @media only screen and (width: 320px) and (height: 504px){
            html{
                font-size: 12px;
            }
        }
        /*iphone 7Plus*/
        @media only screen and (width: 414px) and (height: 672px){
            html{
                font-size: 16px;
            }
            .wrapper{
                margin: 2.35rem auto;
            }
        }
        /*iphone x*/
        @media only screen and (width: 375px) and (height: 724px){
            html {
                font-size: 14px;
            }
            .wrapper{
                /*margin: 7.35rem auto;*/
                height: 40rem;
            }
            .content{
                height:37.96rem;
            }
            .index_img{
                margin-top: 6rem;
            }
        }
    </style>
    <script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
    <script>
        var _hmt = _hmt || [];
        (function() {
            var hm = document.createElement("script");
            hm.src = "https://hm.baidu.com/hm.js?11869969a3b6834ebb1d5b9f3d9c7a5f";
            var s = document.getElementsByTagName("script")[0];
            s.parentNode.insertBefore(hm, s);
        })();
    </script>
</head>
<body>
    <div class="wrapper">
        <div id="tab-1" class="wrapper-content">
            <div class="content">
                <img src="/static/valentine/img/index_text_3x.png" alt="" class="index_img">
                <a href="/activity/valentine_add" class="index_button">
                </a>
            </div>
        </div>
    </div>
    <script>
        document.setTitle = function(t) {
            document.title = t;
            var i = document.createElement('iframe');
            i.src = '/favicon.ico';
            i.style.display = 'none';
            i.onload = function() {
                setTimeout(function(){
                    i.remove();
                }, 0)
            };
            document.body.appendChild(i);
        };
        wx.config({
            debug: false,
            appId: '{$signPackage.appId}',
            timestamp: {$signPackage.timestamp},
            nonceStr: '{$signPackage.nonceStr}',
            signature: '{$signPackage.signature}',
            jsApiList: ['onMenuShareTimeline','onMenuShareAppMessage']
        });
        wx.ready(function(){
            wx.onMenuShareAppMessage({
                title: '{$share_title}',
                desc: '{$share_introduction}',
                link: '{$signPackage.url}',
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show',
                type: 'link',
                dataUrl: '',
                success: function () {

                },
                cancel: function () {

                }
            });
            wx.onMenuShareTimeline({
                title: '{$share_title}',
                link: '{$signPackage.url}',
                imgUrl: 'https://oss.goddessxzns.com/picture/uploads/logo.png?x-oss-process=style/show',
                success: function () {

                },
                cancel: function () {

                }
            });
        });
    </script>
    {include file="../apps/web/view/public/sensors.html" /}
</body>
</html>
